package comcksys.authserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * @author: yxzhang23
 * @time: 2021/4/8
 */
@Data
@TableName(value = "user")
public class User {

    @TableId(type = IdType.AUTO)
    private Long    id;

    private String  uuid;

    private String  username;

    private String  password;

    private String  nickName;

    @TableField(exist = false)
    private List<Role> roles;

}
